package com.management.service;

import com.management.controller.form.*;
import com.management.model.DefectType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.management.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 龙世超
 * @since 2022-03-23
 */
public interface DefectTypeService extends IService<DefectType> {

    /**
     * 获取所有缺陷类型的业务层接口
     * @param getTypePageForm
     * @return
     */
    Result FindType(GetTypePageForm getTypePageForm);

    /**
     * 新增缺陷类型的业务成层接口
     * @param createTypeForm
     * @return
     */
    Result addType(CreateTypeForm createTypeForm);

    /**
     * 移除缺陷类型的业务层接口
     * @param removeTypeForm
     * @return
     */
    Result removType(RemoveTypeForm removeTypeForm);

    Result removeBytypeIds(RemoveBytypeIdsForm removeBytypeIdsForm);

    Result updateBytypeId(DisableTypeForm disableTypeForm);

    Result FindAllType();
}
